<?php

class Event extends Model
{
	protected $table_name='events';
	
	public function get_user()
	{
		return new User($this->user_id);
	}
	
	public function belongs_to($user)
	{
		return ($this->user_id == $user->id);
	}
}
?>